import request from '@/utils/request';


export function listForAgent(data: any) {
  return request({
    url: '/api/v1/render/agent/list',
    method: 'post',
    data: data
  });
}

export function saveForAgent(data: any) {
  return request({
    url: '/api/v1/render/agent/save',
    method: 'post',
    data: data
  });
}

export function deleteForAgent(data: any) {
  return request({
    url: '/api/v1/render/agent/delete',
    method: 'post',
    data: data
  });
}

export function limitForAgent(data: any) {
  return request({
    url: '/api/v1/render/agent/limit',
    method: 'post',
    data: data
  });
}

export function restartForAgent(data: any) {
  return request({
    url: '/api/v1/render/agent/restart',
    method: 'post',
    data: data
  });
}

/**
 * 显卡授权列表
 */
export function listForUserAgent(data: any) {
  return request({
    url: '/api/v1/user/agent/list',
    method: 'post',
    data: data
  });
}

/**
 * 显卡授权信息保持
 */
export function saveForUserAgent(data: any) {
  return request({
    url: '/api/v1/user/agent/save',
    method: 'post',
    data: data
  });
}